package com.aspose.cells;

class zcax extends zcdb {
   zcax(ConditionalFormattingValue var1, boolean var2) throws Exception {
      this.d = var2 ? 1050 : 471;
      zcbx var3 = null;
      byte[] var4 = null;
      if (var1.e()) {
         var4 = var1.f();
      }

      int var5 = 24;
      int var6 = 0;
      if (var2) {
         var3 = new zcbx(var1);
         var5 += var3.c();
         this.c = new byte[var5];
         var6 = var3.b(this.c, 0);
      } else {
         if (var4 != null) {
            var5 += var4.length;
         }

         this.c = new byte[var5];
      }

      System.arraycopy(com.aspose.cells.b.a.zc.a(zcee.A(var1.getType())), 0, this.c, var6 + 0, 4);
      double var7 = var1.d();
      System.arraycopy(com.aspose.cells.b.a.zc.a(var7), 0, this.c, var6 + 4, 8);
      if (var1.isGTE()) {
         this.c[var6 + 12] = 1;
         this.c[var6 + 16] = 1;
      }

      if (var4 != null) {
         System.arraycopy(com.aspose.cells.b.a.zc.a(var4.length), 0, this.c, var6 + 20, 4);
         if (!var2) {
            System.arraycopy(var4, 0, this.c, 24, var4.length);
         }
      }

   }
}
